package com.amar.dtadmin.apidoc.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

/**
 * @author xiaoshiqiang
 * @since 2025/2/8
 */
@Data
public class DtAdminLoginResp {
    private Message message;

    private String responseCode;

    private String responseMessage;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Message {
        @JsonProperty("access_token")
        private String accessToken;

        @JsonProperty("token_type")
        private String tokenType;

        @JsonProperty("refresh_token")
        private String refreshToken;

        @JsonProperty("expires_in")
        private String expiresIn;

        private String scope;

        @JsonProperty("OrgId")
        private String orgId;

        @JsonProperty("UserId")
        private String userId;
    }
}
